@import '~antd/es/style/themes/default.less';

.alarm-dash-board {
  .top-card-items {
    margin-bottom: 12px;

    .top-card-item {
      width: 25%;
      padding: 6px 24px;
      border: 1px solid #e3e3e3;

      .top-card-top {
        display: flex;
        padding: 12px 0;

        .top-card-top-left {
          width: 80px;
        }

        .top-card-top-right {
          .top-card-total {
            font-weight: bold;
            font-size: 20px;
          }
        }
      }

      .top-card-bottom {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-top: 1px solid #e3e3e3;
      }
    }
  }

  .media-dash-board-body {
    border: 1px solid #f0f0f0;
  }

  .new-alarm-items {
    > ul {
      padding: 0;

      .new-alarm-item {
        display: flex;
        gap: 12px;
        margin: 20px 0;
        font-size: 12px;

        .new-alarm-item-time {
          width: 180px;
          font-size: 14px;

          > img {
            margin-right: 8px;
          }
        }

        .new-alarm-item-content {
          width: ~'calc(100% - 360px)';
        }

        .new-alarm-item-state {
          width: 90px;
          text-align: center;

          .error {
            color: @error-color;
          }

          .default {
            color: @text-color;
          }
        }

        .new-alarm-item-level {
          width: 52px;
          padding: 2px 8px;
          color: #fff;
          text-align: center;
          border-radius: 2px;

          &.level-1 {
            background-color: #e50012;
          }

          &.level-2 {
            background-color: #ff9457;
          }

          &.level-3 {
            background-color: #fabd47;
          }

          &.level-4 {
            background-color: #999;
          }

          &.level-5 {
            background-color: #bbb;
          }
        }
      }
    }
  }
}

.alarmRank {
  position: relative;
  width: 30%;
  padding-left: 48px;
}

.alarmRank::before {
  position: absolute;
  top: 150px;
  left: 0;
  width: 1px;
  height: 187px;
  background-color: #e0e4e8;
  content: '';
}

.rankingList {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;

  li {
    display: flex;
    align-items: center;
    margin-top: 16px;
    zoom: 1;

    &::before,
    &::after {
      display: table;
      content: ' ';
    }

    &::after {
      clear: both;
      height: 0;
      font-size: 0;
      visibility: hidden;
    }

    span {
      //color: red;
      font-size: 14px;
      line-height: 22px;
    }

    .rankingItemNumber {
      display: inline-block;
      width: 20px;
      height: 20px;
      margin-top: 1.5px;
      margin-right: 16px;
      font-weight: 600;
      font-size: 12px;
      line-height: 20px;
      text-align: center;
      background-color: #edf0f3;
      border-radius: 20px;

      &.active {
        color: #fff;
        background-color: #314659;
      }
    }

    .rankingItemTitle {
      flex: 1;
      margin-right: 8px;
      padding-left: 8px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
